using System;
namespace Microsoft.Phone.Controls
{
	internal class TwelveHourDataSource : DataSource
	{
		protected override DateTime? GetRelativeTo(DateTime relativeDate, int delta)
		{
			int num = 12;
			int num2 = (12 + relativeDate.get_Hour() + delta) % 12;
			num2 += ((12 <= relativeDate.get_Hour()) ? num : 0);
			return new DateTime?(new DateTime(relativeDate.get_Year(), relativeDate.get_Month(), relativeDate.get_Day(), num2, relativeDate.get_Minute(), 0));
		}
	}
}
